//
//  OKRightLineButton.m
//  ZLFastDoctor
//
//  Created by answer on 16/5/24.
//  Copyright © 2016年 LS. All rights reserved.
//

#import "OKRightLineButton.h"
#import <Masonry/Masonry.h>

@interface OKRightLineButton ()
@property (strong, nonatomic) UIView *rightLine;
@end

@implementation OKRightLineButton

- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        [self setupUI];
    }
    return self;
}

- (void)setupUI {
    
    [self addSubview:self.rightLine];
    
    [self.rightLine mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self).offset(5);
        make.bottom.equalTo(self).offset(-5);
        make.right.equalTo(self);
        make.width.equalTo(@1);
    }];
}

- (UIView *)rightLine {
    if (_rightLine == nil) {
        _rightLine = [[UIView alloc] init];
        _rightLine.backgroundColor = [UIColor lightGrayColor];
    }
    return _rightLine;
}

@end




